#ifndef DIAMETERPIECHART_H
#define DIAMETERPIECHART_H
#include <QChartView>
#include <QPieSeries>
#include <QPieSlice>
#include <vector>

QT_CHARTS_USE_NAMESPACE

class DiameterPieChart
{
public:
    DiameterPieChart();
    QPieSeries *series = nullptr;
    QChart *chart = nullptr;
    QChartView *chartView = nullptr;
    int AllowMaxSlice = 256;
    std::vector<QColor> Colors;
    void refreshItem(std::vector<std::pair<std::string, int>> Items);
    void UpdateSlice(std::vector<std::pair<std::string, int>> Items);
    QChartView *GetQChartView();
    double Total = 0;
};

#endif // DIAMETERPIECHART_H
